package com.jy.adscm.order.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zyl
 * @Date 2019/1/27 -10:07
 */
public class JyOrderChart {
    private  Integer id;
    private  String state;
    private Date orderTime;
    private String  dealer;
    private Date  predictTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getOrderTime() {
        return orderTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public String getDealer() {
        return dealer;
    }

    public void setDealer(String dealer) {
        this.dealer = dealer;
    }
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    public Date getPredictTime() {
        return predictTime;
    }
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public void setPredictTime(Date predictTime) {
        this.predictTime = predictTime;
    }

    @Override
    public String toString() {
        return "JyOrderChart{" +
                "id=" + id +
                ", state='" + state + '\'' +
                ", orderTime=" + orderTime +
                ", dealer='" + dealer + '\'' +
                ", predictTime=" + predictTime +
                '}';
    }
}
